From: Julien Grall Date: Thu, 5 Oct 2017 17:42:18 +0000 (+0100) Subject: xen/kimage: Remove defined but unused variables X-Git-Tag: archive/raspbian/4.11.1-1+rpi1~1^2~66^2~1216 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https://%22%22/%22http:/www.example.com/cgi/%22https:/%22%22?a=commitdiff_plain;h=49191124d93bf7bdb184481dfef7268acef880e6;p=xen.git xen/kimage: Remove defined but unused variables In the function kimage_alloc_normal_control_page, the variables mfn and emfn are defined but not used. Remove them. Signed-off-by: Julien Grall Reviewed-by: Andrew Cooper --- diff --git a/xen/common/kimage.c b/xen/common/kimage.c index cf624d10fd..2ef83c8b80 100644 --- a/xen/common/kimage.c +++ b/xen/common/kimage.c @@ -310,14 +310,11 @@ static struct page_info *kimage_alloc_normal_control_page( * destination page. */ do { - unsigned long mfn, emfn; paddr_t addr, eaddr; page = kimage_alloc_zeroed_page(memflags); if ( !page ) break; - mfn = page_to_mfn(page); - emfn = mfn + 1; addr = page_to_maddr(page); eaddr = addr + PAGE_SIZE; if ( kimage_is_destination_range(image, addr, eaddr) )